package com.bigshen.demo.annotation.configurecomponents.a5Imports;

import com.bigshen.demo.project.entity.World;
import org.springframework.beans.factory.FactoryBean;

public class MyFactoryBean implements FactoryBean<World> {

    @Override
    public World getObject() throws Exception {
        return new World();
    }

    @Override
    public Class<?> getObjectType() {
        return World.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
